package com.admin.admin.modules.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Auther: zhouyang
 * @Date: 2019/4/19 09:40
 * @Description:
 */

@Controller
public class SysPageController {

    //通用跳转
    @RequestMapping(value = {"modules/{module}/{url}.html"})
    public String module(@PathVariable("module") String module,
                         @PathVariable("url")String url){
        return "modules/"+module+"/"+url;
    }

    @RequestMapping(value = {"/","index.html"})
    public String index(){
            return "index";
    }

    @RequestMapping("login.html")
    public String login(){
        return "login";
    }

    @RequestMapping("main.html")
    public String main(){
        return "main";
    }

    @RequestMapping("404.html")
    public String noFond(){
        return "404";
    }

}
